package org.linlinjava.litemall.db.models;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
@EqualsAndHashCode(callSuper = false)
@TableName(value = "t_comment", autoResultMap = true)
public class Comment extends BaseModel{

    @TableField("value_id")
    private Integer valueId;

    @TableField("type")
    private Byte type;

    @TableField("content")
    private String content;

    @TableField("admin_content")
    private String adminContent;

    @TableField("user_id")
    private Long userId;

    @TableField("has_picture")
    private Boolean hasPicture;

    @TableField(value = "pic_urls", typeHandler = JacksonTypeHandler.class)
    private String[] picUrls;

    @TableField("star")
    private Short star;

}